# Makefile

gp: main.o real_node.o cg_node.o cg_image.o correspond.o dispatcher.o
	g++ main.o real_node.o cg_node.o cg_image.o correspond.o dispatcher.o -lpthread -o gp
main.o: main.cc gp.h
	g++ -c -g main.cc
real_node.o: real_node.cc real_node.h
	g++ -c -g -DRUN real_node.cc
cg_image.o: cg_image.cc cg_image.h cg_node.h
	g++ -c -g cg_image.cc
cg_node.o: cg_node.cc cg_image.h cg_node.h correspond.h dispatcher.h
	g++ -c -g -DRUN cg_node.cc
correspond.o: correspond.cc correspond.h
	g++ -c -g correspond.cc
dispatcher.o: dispatcher.cc dispatcher.h
	g++ -c -g dispatcher.cc


clean:
	rm *.o
